package cn.jiyun.service.impl;

import cn.jiyun.mapper.SpecialCoefficientMapper;
import cn.jiyun.pojo.SpecialCoefficient;
import cn.jiyun.pojo.SpecialCoefficientTwo;
import cn.jiyun.service.SpecialCoefficientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpecialCoefficientServiceImpl implements SpecialCoefficientService {
    @Autowired
    private SpecialCoefficientMapper specialCoefficientMapper;

    @Override
    public List<SpecialCoefficient> findAll() {
        return specialCoefficientMapper.findAll();
    }

    @Override
    public void add( SpecialCoefficientTwo specialCoefficientTwo) {
        specialCoefficientMapper.add(specialCoefficientTwo);
    }

    @Override
    public void deletebyid(Integer id) {
        specialCoefficientMapper.deletebyid(id);
    }

    @Override
    public void updatebyid(SpecialCoefficient specialCoefficient) {
        specialCoefficientMapper.updatebyid(specialCoefficient);
    }

    @Override
    public List<SpecialCoefficientTwo> findAllTwo() {
        return specialCoefficientMapper.findAllTwo();
    }
}
